package com.shujia.day04;

public class Student4 {
    private String name;
    private String id;
    private int age;

    public void setName(String s){
        name = s;
    }
    public String getName(){
        return name;
    }

    public void setId(String s){
        id = s;
    }
    public String getId(){
        return id;
    }

    public void setAge(int i){
        age = i;
    }
    public int getAge(){
        return age;
    }

    public void show(){
        System.out.println("姓名："+name);
        System.out.println("id："+id);
        System.out.println("年龄："+age);
    }

}

class Student4Operator{
    public static void main(String[] args) {
        Student4 student4 = new Student4();
        student4.setName("彭华胜");
        student4.setAge(20);
        student4.setId("46");
        student4.show();
    }
}
